package com.hakim.wfb.schedule.task;

import com.hkfs.fundamental.common.utils.TimeUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 订单取票状态任务
 */
@Component
public class PrintStatusTask extends BaseTask {

    private Logger logger = LoggerFactory.getLogger(PrintStatusTask.class);

    public void execute() {
        logger.info("交易平台交易数据刷新任务 - 开始:" + TimeUtils.formatTime(new Date(), TimeUtils.FORMAT_YYYYMMDDHHMMSS));
        try {

            Thread.sleep(1000);

        } catch (Exception e) {
            e.printStackTrace();
        }
        logger.info("交易平台交易数据刷新任务 - 完成:" + TimeUtils.formatTime(new Date(), TimeUtils.FORMAT_YYYYMMDDHHMMSS));
    }
}
